# Maintainer: Ariadne Conill <ariadne@ariadne.space>
pkgname=paxrelabel
pkgver=0.1.1
pkgrel=2
pkgdesc="automatically manage system-wide PaX exceptions"
url="https://gitlab.alpinelinux.org/ariadne/paxrelabel"
arch="all"
license="ISC"
source="https://gitlab.alpinelinux.org/ariadne/paxrelabel/-/archive/v$pkgver/paxrelabel-v$pkgver.tar.gz
	paxrelabel.commit-hook"
builddir="$srcdir/paxrelabel-v$pkgver"

build() {
	make
}

check() {
	:
}

package() {
	make DESTDIR="$pkgdir" install

	install -Dm755 "$srcdir"/paxrelabel.commit-hook \
		"$pkgdir"/etc/apk/commit_hooks.d/"$pkgname"
}

sha512sums="
b2e49bdac9bea23bb87d274c5ec1eb54e98162f32e17df0d9b70c27e70d0e6b5e2d19c97b891c1ae3fc41c2788de6beb61573e452a5cb1f2d30d3f19fa1b4870  paxrelabel-v0.1.1.tar.gz
43ec8fa0fc84a3889788cafa38fcb3b43c72b39e718d7bf444b4cc995f0494ef5f020acf1d897561dc6dd7980651c40866f01fc35bd6ceaccfdc79780f6cb4a7  paxrelabel.commit-hook
"
